package com.zhiyou100.service;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.dao.DetailDao;
import com.zhiyou100.model.Detail;
@Service
public class DetailServiceImpl implements DetailService{
    @Autowired
    private DetailDao detailDao;
	@Override
	public ArrayList<Detail> findBy(int projectId) {
		ArrayList<Detail> al = detailDao.findBy(projectId);
		
		return al;
	}

	@Override
	public void add(Detail detail) {
		detailDao.add(detail);
	}

	@Override
	public void update(Detail detail) {
		detailDao.update(detail);
	}

	@Override
	public Detail findAll(int id) {
		return detailDao.findAll(id);
	}

}
